Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> n=int(input("输入一个数字"))
输入一个数字for i in range(1,n+1):
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    n=int(input("输入一个数字"))
ValueError: invalid literal for int() with base 10: 'for i in range(1,n+1):'
>>> for i in range(1,n+1):
...     print(' '*(80-(i-1)*3),end=' ')
...     for j in range(1,i+1):
...         if(i*j)//10==0:
...             print('',end=' ')
...         s='{0}*{1}={2}'.format(i,j,i*j)
...         print(s,end=' ')
...     print()
... 
...     
Traceback (most recent call last):
  File "<pyshell#9>", line 1, in <module>
    for i in range(1,n+1):
NameError: name 'n' is not defined
>>> n=int(input("输入一个数字"))
输入一个数字3
>>> for i in range(1,n+1):
...     print(' '*(80-(i-1)*3),end=' ')
...     for j in range(1,i+1):
...         if(i*j)//10==0:
...             print('',end=' ')
...         s='{0}*{1}={2}'.format(i,j,i*j)
...         print(s,end=' ')
...     print()
... 
...     
                                                                                  1*1=1 
                                                                               2*1=2  2*2=4 
                                                                            3*1=3  3*2=6  3*3=9 
